package org.will.ftppool;

import org.apache.commons.net.ftp.FTPFile;

import java.util.List;

/**
 * @Author wangwei-ww
 * @Date 2017/6/29 19:56
 * @Comment
 */
public interface IFTPOpts {
    List<String> listFiles(String path, int limit) throws Exception;

    FTPContent downloadFile(String path, String fileName) throws Exception;

    void getFileCallback(String path, String fileName, IFTPCallback<FTPFile, Boolean> callback) throws Exception;

    boolean putFile(String path, byte[] bytes, String fileName) throws Exception;

    boolean deleteFile(String path, String fileName) throws Exception;
}
